<template>
	<view class="card" @click="gotoDetailFun">
		<view class="khName">{{$u.timeFormat(item.link_time, 'yyyy-mm-dd hh:MM:ss')}}</view>
		<view class="lrView">
			<view>跟进阶段：</view>
			<view>{{item.salestage}}</view>
		</view>
		<view class="lrView" v-if="item.salemode">
			<view>跟进方式：</view>
			<view>{{item.salemode}}</view>
			<!-- <view v-if="item.states == '有需求跟进'" class="yellowColor">{{item.states}}</view>
			<view v-if="item.states == '促单'" class="greenColor">{{item.states}}</view>
			<view v-if="item.states == '放弃'" class="redColor">{{item.states}}</view> -->
		</view>
		<view class="lrView">
			<view>跟进内容：</view>
			<view class="liangHang">{{item.link_body}}</view>
		</view>
		<view v-if="item.next_time" class="lrView">
			<view>下次跟进：</view>
			<view>{{$u.timeFormat(item.next_time, 'yyyy-mm-dd hh:MM:ss')}}</view>
		</view>
		<view class="lookDetail">
			<text>查看详情</text>
			<u-icon name="arrow-right" size="36"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				default: () => {}
			},
			index: {
				type: Number,
				default: 0
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			gotoDetailFun: function() {
				uni.$gjInfo = this.item;
				uni.navigateTo({
					url: '/pages/crm/cst_clue/trace_detail?index=' + this.index
				})
			}
		}
	}
</script>

<style>
	.card {
		width: 686rpx;
		margin: 32rpx;
		background-color: #FFFFFF;
		padding: 16rpx;
		border-radius: 26rpx;
		box-sizing: border-box;
		box-shadow: #dddddd 0px 0px 32rpx;
	}
	.bottomRow {
		display: flex;
		justify-content: space-between;
		border-top: 1rpx solid #dddddd;
		padding-top: 16rpx;
		margin-top: 16rpx;
	}
	.khName {
		font-size: 16px;
		font-weight: bold;
		margin-bottom: 16rpx;
		padding-bottom: 10rpx;
		border-bottom: 1rpx solid #e8e8e8;
	}
	.lrView {
		display: flex;
		font-size: 16px;
	}
	.lrView>view:first-child {
		width: 176rpx;
		color: #ADADAD;
	}
	.lrView>view:last-child {
		width: 466rpx;
		color: #000000;
	}
</style>

